package com.tongzhan.entity.religion;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

/**
 * 情况实体类
 * @author wn
 * @date 2020/07/16
 */
@Data
@Document(collection = "Condition")
public class Condition extends BaseModel {
    @Id
    @PrimaryKey
    private String _id;
    @Field("UserName")
    private String userName;
    @Field("RealName")
    private String realName;
    @Field("StreetCode")
    private String streetCode;
    @Field("StreetName")
    private String streetName;
    @Field("VillageCode")
    private String villageCode;
    @Field("VillageName")
    private String villageName;
    @Field("SiteCode")
    private String siteCode;
    @Field("SiteName")
    private String siteName;
    @Field("Title")
    private String title;
    @Field("Content")
    private String content;
    @Field("Picture")
    private String picture;
    @Field("CreateTime")
    private LocalDateTime createTime;
    @Field("UpdateTime")
    private LocalDateTime updateTime;
}
